package com.project.service.impl;

import com.project.Dao.ILinkDao;
import com.project.bean.CutPageBean;
import com.project.bean.LinkBean;
import com.project.service.ILinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Title: LinkServiceImpl
 * @Package: com.project.service.impl
 * @Description:
 * @Author: Liang-Xie
 * @Date: 2022/6/22 - 17:47
 */
@SuppressWarnings("all")
@Service
public class LinkServiceImpl implements ILinkService {
    @Autowired
    private ILinkDao dao;

    @Override
    public CutPageBean<LinkBean> cutAll(int pageNum) {
        return dao.cutAll(pageNum);
    }

    @Override
    public LinkBean findById(int id) {
        return dao.findById(id);
    }

    @Override
    public void add(LinkBean linkBean) {
        dao.add(linkBean);
    }

    @Override
    public void update(int id, String phone) {
        dao.update(id, phone);
    }

    @Override
    public void del(Integer id) {
        dao.del(id);
    }
}
